package com.gw.booking.dto.backend;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

public class RoleUptDto {

	@ApiModelProperty(value="id", required = true)
	@NotNull
	private int id;
	
	@ApiModelProperty(value="角色名", required = true)
	@NotEmpty
	private String roleName;
	
	@ApiModelProperty(value="角色说明", required = true)
	@NotEmpty
	private String roleInfo;
	
	@ApiModelProperty(value="权限id集", example="1,2,3")
	@NotEmpty
	//@Pattern(regexp="([0-9](,[0-9])*)?")
	private String privilegeIds;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleInfo() {
		return roleInfo;
	}

	public void setRoleInfo(String roleInfo) {
		this.roleInfo = roleInfo;
	}

	public String getPrivilegeIds() {
		return privilegeIds;
	}

	public void setPrivilegeIds(String privilegeIds) {
		this.privilegeIds = privilegeIds;
	}
	
	
	
	
}
